package entity;

import entity.annotation.Id;
import entity.annotation.Manytoone;
import entity.annotation.Table;

@Table(name="TB_STUDENT")
public class Student {
	@Id
	private int STUDENTID;
	private String STUDENTNAME;
	public int getSTUDENTID() {
		return STUDENTID;
	}
	public void setSTUDENTID(int sTUDENTID) {
		STUDENTID = sTUDENTID;
	}
	private String STUDENTADDRESS;
	
	@Manytoone(mapby="tb_department",id="DEPARTMENTID",fk="DEPARTMENTID")
	private Department depart;
	
	
	public Department getDepart() {
		return depart;
	}
	public void setDepart(Department depart) {
		this.depart = depart;
	}
	
	
	
	public String getSTUDENTNAME() {
		return STUDENTNAME;
	}
	public void setSTUDENTNAME(String sTUDENTNAME) {
		STUDENTNAME = sTUDENTNAME;
	}
	public String getSTUDENTADDRESS() {
		return STUDENTADDRESS;
	}
	public void setSTUDENTADDRESS(String sTUDENTADDRESS) {
		STUDENTADDRESS = sTUDENTADDRESS;
	}
	
}
